<html>
<head><meta charset="utf-8"><title>re-exports in aliasing · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/re-exports.20in.20aliasing.html">re-exports in aliasing</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="230578139"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/re-exports%20in%20aliasing/near/230578139" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/re-exports.20in.20aliasing.html#230578139">(Mar 16 2021 at 19:43)</a>:</h4>
<p>Looks like something in auto-import now doesn't consider aliases</p>



<a name="230578147"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/re-exports%20in%20aliasing/near/230578147" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/re-exports.20in.20aliasing.html#230578147">(Mar 16 2021 at 19:43)</a>:</h4>
<p><a href="/user_uploads/4715/0RHw7FhEA8OuoSKmwuk7osDW/image.png">image.png</a></p>
<div class="message_inline_image"><a href="/user_uploads/4715/0RHw7FhEA8OuoSKmwuk7osDW/image.png" title="image.png"><img src="/user_uploads/4715/0RHw7FhEA8OuoSKmwuk7osDW/image.png"></a></div>



<a name="230578284"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/re-exports%20in%20aliasing/near/230578284" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/re-exports.20in.20aliasing.html#230578284">(Mar 16 2021 at 19:44)</a>:</h4>
<p>One doesn't need long type hints if the types themselves are long enough :-)</p>
<p><span class="user-mention" data-user-id="231447">@Kirill Bulatov</span> could this be duplicate detection?</p>



<a name="230584597"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/re-exports%20in%20aliasing/near/230584597" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Kirill Bulatov <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/re-exports.20in.20aliasing.html#230584597">(Mar 16 2021 at 20:22)</a>:</h4>
<p>When I tried to tackle this half a year ago, I've discovered that we don't store and expose anything related to type alias info: no relation to real types, visibility, etc.<br>
So there's simply nothing in the hints logic trying to deal with aliases due to this reason.</p>
<p>That's one of those things that I'd love to fix but have no idea where to start with.</p>



<a name="230652650"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/re-exports%20in%20aliasing/near/230652650" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/re-exports.20in.20aliasing.html#230652650">(Mar 17 2021 at 08:08)</a>:</h4>
<p>Ah, right, that's not a regression, that's a per-existing behavior. It's just that I didnt touch syntax for a long time</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>